package my.maven.project.spiderproc.dao;

import java.util.Collection;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import my.maven.project.spiderproc.entity.Word;
 
public interface WordDao  extends JpaRepository<Word, Long> {

	@Query(value="select words from word where words in (?1)",nativeQuery=true)
	public List<String> listByWords(List<String> Words);  
	
	@Query(value="select words from word where words in (?：Words)",nativeQuery=true)
	public List<String> listByWords2(@Param("words")  List<String> Words);  
	
	public List<Word> findByWordsIn(Collection<String> Words);
	
	public Word findByWords(String Words);
	
	public boolean existsByWords(String words);
	
	public List<Word> findByWordsLike(String words);
}
